<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="description" content="一个真实的网络问答社区，帮助你寻找答案，分享知识。"/>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<title>申请注册 - 所有问所有答</title>
<link rel="stylesheet" href="/public/css/style.css"/>
<link rel="stylesheet" href="/public/css/reg.css"/>
<script src="/public/js/jquery.js"></script>
<script src="/public/js/jquery.placeholder.js"></script>
</head>
<body >

<div id="apply">
<h1>所有问所有答 - 发现更大的世界</h1>
{% if len(msg) > 0 %}
<div class="failure" id="summary">
<ul>
{% for s in msg %}
{% block s %}
<li><i></i><span>{{ escape(s) }}</span></li>
{% end %}
{% end %}
</ul>
</div>
{% end %}
<form class="login" method="post" action="/apply" id="regist">
<div><input autofocus="true" class="text" id="email" name="email" placeholder="邮 箱" spellcheck="true" required="required" tabindex="1" type="email" value="{% if 'email' in parame %}{{parame['email']}}{% end %}"> </div>
<div><input class="text" id="fullname" name="fullname" placeholder="真实姓名（本社区是一个实名社区）" required="required" type="text" value="{% if 'name' in parame %}{{parame['name']}}{% end %}"></div>
<div><textarea class="text" id="headline" name="headline" placeholder="个人介绍（职业背景、专业技能，比如外科医生、民事律师）" required="required">{% if 'headline' in parame %}{{parame['headline']}}{% end %}</textarea></div>
<input class="button" type="submit" value="申 请">
</form>
<div class="footer">
&copy; 2012 知乎
<span class="middot">&middot;</span>
<a href="#" target="_blank">新浪微博</a>
<span class="middot">&middot;</span>
<a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备11010522号</a>
<span class="middot">&middot;</span>
京公网安备11010802010035号
</div>
</div>
<div class="reg">
<a href="/" class="register">已有帐号登录</a>
</div>
<script>
$(function() {
var $form = $('#regist')
var support = (function(input) {
return function(attr) { return attr in input }
})(document.createElement('input'))
// 直至 safari 5.1.5， 原生 placeholder 不会自动折行
var isSafari = $.browser.safari && /Apple Computer/.test(navigator.vendor);
if ( isSafari || !(support('placeholder') && $.browser.webkit) ) {
$('.text', $form).placeholder({
useNative: false,
hideOnFocus: false,
style: {
textShadow: 'none'
}
})
}
if ( !support('autofocus') ) {
$('input[autofocus]', $form).focus()
}
})
</script>
</body>
</html>
